home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 7 / BBS in a Box - Macintosh - Volume VII (BBS in a Box) (January 1993).iso / Files / Util / T-Te / taskdemo.cpt / taskdemo / taskdemo.doc < prev    next >
Encoding:
Text File  |  1987-09-07  |  4.7 KB  |  121 lines  |  [TEXT/MSWD]

  1.                                               Taskdemo Documentation
  2.                         ======================
  3.  
  4. Taskdemo
  5. --------
  6.  
  7.   Taskdemo is a small application that shows off a few of the features
  8. of a new product called Tasker. Tasker is a library of multitasking routines
  9. that allows a programmer to split his application into multiple tasks all
  10. executing concurrently. It was not designed to run multiple applications
  11. (like MultiFinder), but to run more than one task inside a single application.
  12.  
  13.   This demo allows the user open up to 4 windows each with its own task. The
  14. task may be a bouncing ball, a zooming rectangle, or scrolling text. While
  15. these windows are operating in background, the user may select menus and run
  16. desk accessories. 
  17.  
  18. Tasker
  19. ------
  20.  
  21.   Tasker is a multitasking library containing 28 routines that make the job
  22. of multiple tasks a breeze. It is available (in library format) for
  23. LightSpeed C, and Consulair C (other versions coming soon). It is very
  24. small (about 3.5K) and very powerful. Composed of 5 managers, Tasker includes -
  25.  
  26.   Queue Manager       - manages doubly linked list queues
  27.  
  28.     InitElem()        - initialize an element
  29.     InitQ()           - initialize a queue
  30.     Enq()             - add an element to the bottom of a queue
  31.     Deq()             - remove an element from the top of a queue
  32.     EnqTop()          - add an element to the top of a queue
  33.     DeqBot()          - remove an element from the bottom of a queue
  34.     InsQ()            - insert an element into a queue
  35.     ExtQ()            - extract an element from a queue
  36.  
  37.   Task Manager        - manages the tasks in the application
  38.  
  39.     InitTasks()       - initialize Tasker
  40.     NewTask()         - create a new task
  41.     DisposeTask()     - dispose of a task
  42.     StartSched()      - start up the task scheduler
  43.     SuspendTask()     - suspend the running task (until it is his turn again)
  44.     SleepTask()       - put the task to sleep (until someone wakes it up)
  45.     WakeTask()        - wake a task up (one that was put to sleep)
  46.     RunTaskID()       - return the ID of a running task
  47.     TaskState()       - return the state of a task
  48.  
  49.   Message Manager     - manages asynchronous inter-task communications
  50.  
  51.     SendMsg()         - send a message to a task
  52.     GetMsg()          - retrieve a message from the task's message queue
  53.     MsgAvail()        - check if a message exits on the  task's message queue
  54.         WaitMsg()         - wait until a message (of a certain type) shows up
  55.                         on the  task's message queue
  56.     ClrMsg()          - clear all messages (of a certain type) from the
  57.                         task's message queue
  58.  
  59.   Mailbox Manager     - manages synchronous inter-task communications
  60.  
  61.     ReadMbx()         - read a mailbox
  62.     WriteMbx()        - write a mailbox
  63.  
  64.   Timer Manager       - manages delayed task operations
  65.  
  66.     TimerMsg()        - send a message to a task on a timer
  67.     TimerMbx()        - write to a mailbox on a timer
  68.     TimerWake()       - wake a task on a timer
  69.     StopTimer()       - stop a timer
  70.  
  71.  
  72.     Tasker (object code) includes
  73.  
  74.     - two libraries containing these routines
  75.     - examples showing background sound, printing, communications and this demo
  76.     - a quick reference card with all of these routines and their parameters
  77.     - a special gift
  78.  
  79.     Tasker (source code) includes
  80.  
  81.     - all of the items in Tasker object code 
  82.     - complete source code to all of the routines, fully documented
  83.  
  84. -------------------------------------------------------------------------------
  85.                            ORDER FORM
  86.                          --------------
  87.     
  88.   Name:    _________________________________________________________
  89.  
  90.   Company: _________________________________________________________
  91.  
  92.   Address: _________________________________________________________
  93.  
  94.   City:    _________________________________________________________
  95.  
  96.   State:   ____ Zip: _______ Country: ______________________________
  97.  
  98.   Telephone: ___-___-____
  99.  
  100.   [] LightSpeedC format
  101.  
  102.   [] Consulair Mac C format
  103.  
  104.   PRODUCT                                               EACH  QTY   TOTAL
  105.  
  106.     TASKER (object code) ................................$49.95 ___ $ _____
  107.   TASKER (source code) ................................$99.95 ___ $ _____
  108.  
  109.   Sales Tax (Arizona residents only, add 6%)                      $ _____
  110.   Shipping (U.S. - add $3.00, outside U.S. - add $10.00)          $ _____
  111.  
  112.   TOTAL ...............................................           $ _____
  113.  
  114.   For fastest delivery, include cashiers check or money order for total amount.
  115.  
  116.   Mail to: ShirtPocket Software
  117.            1458 W. Coquina
  118.            Gilbert, AZ 85234
  119.   or call  (602) 926-1062
  120. -------------------------------------------------------------------------------
  121.